<ol class="breadcrumb" id="breadcrumb">
    <li><a href="#">Trang chủ</a></li>
    <li><a href="<?= PATH_URL . 'user/' . $this->session->userdata('username') ?>">Thành viên</a></li>
    <li class="active">Đăng bài</li>
</ol>
<div class="clearfix"></div>
<div class="login-page">
    <div class="user-post">
        <form action="" role="form" method="post">
            <div class="col-lg-12">
                <!-- The fileinput-button span is used to style the file input field as button -->
                <span class="btn btn-success fileinput-button">
                    <i class="glyphicon glyphicon-plus"></i>
                    <span>Select files...</span>
                    <!-- The file input field used as target for the file upload widget -->
                    <input id="fileupload" type="file" name="files[]" multiple>
                </span>
                <br>
                <br>
                <!-- The global progress bar -->
                <div id="progress" class="progress">
                    <div class="progress-bar progress-bar-success"></div>
                </div>
                <!-- The container for the uploaded files -->
                <div id="files" class="files"></div>
            </div>
            <div class="col-lg-6">
                <div class="form-group">
                    <label for="title">Tiêu đề: </label>
                    <input type="text" data-validation-error-msg="Tiêu đề quá ngắn!" data-validation-length="min2"
                           data-validation="length" name="title" class="form-control" id="title">
                </div>
                <div class="form-group">
                    <label for="type">Thể loại:</label>
                    <select name="type" id="type" class="form-control">
                        <option value="0">--Chọn thể loại--</option>
                        <option value="1">Ebooks</option>
                        <option value="2">Luận văn</option>
                        <option value="3">Bài tập lớn</option>
                    </select>
                </div>
                <div class="form-group">
                    <label for="category">Danh mục:</label>
                    <select name="category" id="category" class="form-control">
                        <option value="0">--Danh mục--</option>
                        <?= modules::run('category_books/optionCategory') ?>
                    </select>
                </div>

                <div class="form-group">
                    <label for="image">Hình ảnh</label>
                    <input type="file" name="image" id="image"/>
                </div>
            </div>
            <div class="col-lg-6">
                <div class="form-group">
                    <label for="content-p">Content:</label>
                    <textarea name="content-p" id="content-p" cols="30" rows="10" class="form-control">

                    </textarea>
                </div>
            </div>
            <button type="submit" class="btn btn-default">Update</button>
        </form>
    </div>
</div>

